public enum AppHttpCodeEnum {
    // ... 其他枚举值 ...
    SUCCESS(200,"操作成功"),
    NEED_LOGIN(401,"需要登录后操作"),
    ERROR(500,"出现错误"),
    PARAM_INVALID(400, "参数无效");
    
    int code;
    String msg;
    
    AppHttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    // ... getter方法 ...
} 